"""
@Time ： 2022/12/9 10:05
@Auth ： 陈杰 200320501042
@E-mail : 1612845322@qq.com
"""
from engine import connect
def books():
    # 查询books表
    conn = connect()
    ret = conn.execute("select * from books")
    result = ret.fetchall()#获取记录集
    print(result)# 以元组形式输出结果
    ret.close()#关闭数据库连接
if __name__ == "__main__":
    books()